<?php
@session_start();
$link=mysql_connect("localhost", "root", "");
if(!$link){
	echo "not connected to database";
}

mysql_select_db("techworks");

$id = $_SESSION['pid2'];
$Services= $_POST['products'];
$Pricing= $_POST['pricing'];
$LifeCycle= $_POST['life-cycle'];
$IntelectualRights= $_POST['property-rights'];
$ResDev= $_POST['randd'];



$q= mysql_query ("UPDATE  `tw_services_line` SET `products_services` = '$Services', `pricing_structure` = '$Pricing', `life_cycle` = '$LifeCycle', `intelectual_right` = '$IntelectualRights', `research_dev` = '$ResDev' where `plan_id`='$id'");

if($q){
	$_SESSION['aps']= "success";
	header("location: ../incubatee/edit_plan.php#tab_tab5 ");


		
}else {
	echo mysql_error();
	//header("location: ../incubatee/edit_plan.php#tab_tab5");


}


?>
